home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global FLAG, GRID, GRIDX, GRIDY, GRIDNUM, OILX, OILY, DR, GRIDNUMBER, OILCNT, DEAD, STARTED, LIGHTCNT, BALLCNT, FAST, SPEED, STATUSFLAG, OPTIONFLAG, BUTTONSTATUS, ARROWCNT, GAUGECNT, CROSSES, BONUSROUND, BONUSTOT, LEVEL, NEEDED, SCORE, OILCLOCK, NEWGAME, nosound, CROSSGRIDS, BLOCKGRID, OILRIG, SG, SGG
- set OILRIG to 0
- set BLOCKGRID to 0
- set CROSSGRIDS to []
- set nosound to 0
- set NEWGAME to 0
- set LEVEL to 0
- set NEEDED to 0
- set SCORE to 0
- set the text of field "LEVELTXT" to "0"
- set the text of field "NEEDEDTXT" to "0"
- set the text of field "SCORETXT" to "0"
- set OILCLOCK to 0
- set the text of field "CLOCKTXT" to "0"
- repeat with n = 1 to 117
- if getAt(GRIDNUM, n) <> -1 then
- setAt(GRIDNUM, n, 0)
- end if
- end repeat
- set BONUSTOT to 5000
- set BONUSROUND to 0
- set CROSSES to 0
- set SCORE to 0
- set GAUGECNT to 0
- set ARROWCNT to 1
- set OPTIONFLAG to 0
- set BUTTONSTATUS to 0
- puppetSprite(25, 1)
- set the castNum of sprite 25 to 150
- puppetSprite(28, 1)
- set the castNum of sprite 28 to 218
- repeat with n = 7 to 8
- puppetSprite(n, 1)
- set the visible of sprite n to 1
- end repeat
- set the castNum of sprite 7 to cast "BOTBUTA1"
- set the castNum of sprite 8 to cast "BOTBUTB1"
- set OPTIONFLAG to 1
- set SPEED to 2
- set FAST to 0
- set STARTED to 0
- set DEAD to 0
- set OILCNT to 0
- SETUPTILES()
- PUSHUP()
- cursor(-1)
- puppetSprite(3, 1)
- set the castNum of sprite 3 to cast "BALL0"
- set BALLCNT to 0
- puppetSprite(4, 1)
- set the castNum of sprite 4 to cast "LIGHT1"
- set LIGHTCNT to 1
- repeat with n = 5 to 6
- puppetSprite(n, 1)
- set the locH of sprite n to -2000
- set the locV of sprite n to -2000
- updateStage()
- end repeat
- puppetSprite(40, 1)
- set the locH of sprite 40 to -2000
- set the locV of sprite 40 to -2000
- puppetSprite(21, 1)
- set the locH of sprite 21 to -2000
- set the locV of sprite 21 to -2000
- updateStage()
- set SG to random(4)
- set the castNum of sprite 21 to SG + 45
- set DR to SG
- set SGG to 0
- repeat while SGG = 0
- set SG to random(116)
- if getAt(GRIDNUM, SG) = 0 then
- set SGG to 1
- end if
- end repeat
- set the locH of sprite 21 to getAt(GRIDX, SG)
- set the locV of sprite 21 to getAt(GRIDY, SG)
- set OILX to getAt(GRIDX, SG) + 20
- set OILY to getAt(GRIDY, SG) + 20
- set GRIDNUMBER to SG
- set the locH of sprite 40 to OILX
- set the locV of sprite 40 to OILY
- startTimer()
- setAt(GRIDNUM, SG, 100)
- updateStage()
- set STATUSFLAG to 0
- set the mouseDownScript to "GETLINK"
- GETNEWLEVEL()
- if OILRIG <> 0 then
- set the mouseDownScript to EMPTY
- set the visible of sprite 7 to 0
- set the visible of sprite 8 to 0
- set the mouseDownScript to EMPTY
- play frame "OILRIGIN"
- set the mouseDownScript to "GETLINK"
- set the visible of sprite 7 to 1
- set the visible of sprite 8 to 1
- REFRESHBOARD()
- updateStage()
- end if
- set the keyDownScript to EMPTY
- REFRESHBOARD()
- startTimer()
- end
-